Skip to content

TST: Fail if parameterize set is empty #48924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 5, 2022

Conversation

mroeschke
Copy link
Member

https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-empty_parameter_set_mark

I imagine if pytest.mark.parameterize is used, it is assumed that a test should be parameterized with more than 1 value, so this should prevent accidentally skipping a test if that isn't the case

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Oct 3, 2022
@mroeschke mroeschke added this to the 1.6 milestone Oct 4, 2022
@phofl phofl merged commit 8dd114f into pandas-dev:main Oct 5, 2022
@phofl
Copy link
Member

phofl commented Oct 5, 2022

thx @mroeschke

@mroeschke mroeschke deleted the tst/empty_params_fail branch October 5, 2022 21:12
@mroeschke mroeschke modified the milestones: 1.6, 2.0 Oct 13, 2022
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
lithomas1 added a commit to lithomas1/pandas that referenced this pull request Jan 31, 2023
mroeschke added a commit that referenced this pull request Mar 20, 2023
* BLD: Add pyproject.toml to wheels

* Make strict-data-files opt out

* Fixed backwards condition

* Actually fix

* Maybe fix all

* Adjust options for other wheel builds

* Error on unknown mark warning

* Update pyproject.toml

* Apply suggestions from code review

Co-authored-by: Matthew Roeschke <[email protected]>

* revert #48924

* update

* fix syntax

* fix warnings

* Update test_nlargest.py

* Update pyproject.toml

---------

Co-authored-by: Matthew Roeschke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants